package com.company;

import java.io.*;
import java.net.Socket;
import java.util.Date;

/*public interface HttpSession {
	public long getCreationTime();
	public long getLastAccesssedTime();
	public String getId();
	public void invalidate();
	public boolean isNew();
}*/

public class HttpSession implements Runnable {
	private Socket socket;
	private InputStream in = null;
	private OutputStream out = null;

	public HttpSession(Socket socket) throw IOException {
		this.socket = socket;
		initialize();
	}

	public void initialize() throw IOExcertion {
		in = socket.getInputStream();
		out = socket.getOutputStream();
	}

	public void run() {
		try {
			///
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				socket.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}